<div class="page_head">
<h2>Listing emails</h2>
</div>
<div class="float_center">
<%= link_to 'New email', new_email_path ,:class=>'button'%>
</div>

<table class="data">
  <tr class="head">
    <th>Name</th>
    <th>Subject</th>
    <th>Lang</th>
    <th colspan=3>admin</th>
  </tr>
  
<% for email in @emails %>
  <tr>
    <td><%=h email.name %></td>
    <td><%=h email.subject%></td>
    <td><%=h email.lang%></td>
    <td><%= link_to 'Show', email_path(email) %></td>
    <td><%= link_to 'Edit', edit_email_path(email) %></td>
    <td><%= link_to 'Destroy', email_path(email), :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

